from BeautifulReport import BeautifulReport
import unittest
from datetime import datetime

suite=unittest.TestSuite()
load=unittest.TestLoader()
suite.addTests(load.discover('./test_yl/'))
bf=BeautifulReport(suite)
filename=datetime.now().date()  #获取当前时间的日期部分
bf.report('自动化测试报告','./test_report/report/'+str(filename)+'.html')